package com.dhcc.bpm.modules.workflow.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.util.List;
import java.util.Map;

/**
 * @ClassName ProcessStartDto
 * @Description 流程启动参数
 * @Author xiafayu
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
public class ProcessStartDto {

    /**
     * 参数主键
     */
    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    private Long id;
    /**
     * 业务编号
     */
    private String appId;
    /**
     * 流程Key
     */
    private String processKey;
    /**
     * 用户编号
     */
    private String userId;
    /**
     * 流程参数
     */
    private Map<String, Object> wfParm;
    /**
     * 参数主键 list
     */
    private List<Long> ids;

    public String getAppId() {
        return appId;
    }

    public Long getId() { return id; }

    public void setId(Long id) { this.id = id; }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getProcessKey() {
        return processKey;
    }

    public void setProcessKey(String processKey) {
        this.processKey = processKey;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Map<String, Object> getWfParm() {
        return wfParm;
    }

    public void setWfParm(Map<String, Object> wfParm) {
        this.wfParm = wfParm;
    }

    public List<Long> getIds() { return ids; }

    public void setIds(List<Long> ids) { this.ids = ids; }

}
